package com.ruoyi.ucar.domain;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.UCarBaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

/**
 * 订单与产品数据关联对象 t_order_product_data
 * 
 * @author sungangbin
 * @date 2025-05-13
 */
@TableName("t_order_product_data")
@Data
public class TOrderProductData extends UCarBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /** 订单与产品数据表主键uuid */
    @Excel(name = "订单与产品数据表主键uuid")
    @TableField("order_product_data_uuid")
    private String orderProductDataUuid;

    /** 上传文件附件主表关联UUID */
    @Excel(name = "上传文件附件主表关联UUID")
    @TableField("upload_file_main_uuid")
    private String uploadFileMainUuid;

    /** 车架号 */
    @Excel(name = "车架号")
    @TableField("vin")
    private String vin;

    /** 查询报告文件附件主表关联UUID */
    @Excel(name = "查询报告文件附件主表关联UUID")
    @TableField("queryreport_file_main_uuid")
    private String queryreportFileMainUuid;

    /** 查询报告的订单号 */
    @Excel(name = "查询报告的订单号")
    @TableField("queryreport_order_id")
    private String queryreportOrderId;

    /** 查询报告的url地址 */
    @Excel(name = "查询报告的url地址")
    @TableField("queryreport_url")
    private String queryreportUrl;

    /** 产品表数据-关联uuid */
    @Excel(name = "产品表数据-关联uuid")
    @TableField("product_uuid_mapping")
    private String productUuidMapping;

    /** 订单主表-关联uuid */
    @Excel(name = "订单主表-关联uuid")
    @TableField("order_uuid_mapping")
    private String orderUuidMapping;

    /** 车辆品牌 */
    @Excel(name = "车辆品牌")
    @TableField("vehicle_brand")
    private String vehicleBrand;

    /** 返现状态 */
    @Excel(name = "返现状态")
    @TableField("return_price_status")
    private String returnPriceStatus;

    /** 返现状态 */
    @Excel(name = "返现金额")
    @TableField("return_price")
    private BigDecimal returnPrice;

    /** 返现状态 */
    @Excel(name = "返现到期日期")
    @TableField("return_price_date")
    private LocalDate returnPriceDate;

    /** 消费日期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "报告生效日期时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @TableField("report_datetime")
    private LocalDateTime reportDatetime;


    /** 备注 */
    @Excel(name = "备注")
    @TableField("remark")
    private String remark;

    /** 创建人 */
    @Excel(name = "创建人")
    @TableField("created_by")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("created_time")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @TableField("updated_by")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("updated_time")
    private Date updatedTime;

    /** 删除标志 */
    @Excel(name = "删除标志")
    @TableField("delete_flag")
    private Long deleteFlag;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderProductDataUuid", getOrderProductDataUuid())
            .append("uploadFileMainUuid", getUploadFileMainUuid())
            .append("vin", getVin())
            .append("queryreportFileMainUuid", getQueryreportFileMainUuid())
            .append("queryreportOrderId", getQueryreportOrderId())
            .append("queryreportUrl", getQueryreportUrl())
            .append("productUuidMapping", getProductUuidMapping())
            .append("orderUuidMapping", getOrderUuidMapping())
            .append("vehicleBrand", getVehicleBrand())
            .append("returnPriceStatus", getReturnPriceStatus())
            .append("returnPrice", getReturnPrice())
            .append("returnPriceDate", getReturnPriceDate())
            .append("reportDatetime", getReportDatetime())
            .append("remark", getRemark())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
